package com.miyake.dsp.osa.lab.wrapper;

import com.miyake.dsp.osa.lab.Calculator;
import com.miyake.dsp.osa.lab.Convolution2;
import com.miyake.dsp.osa.lab.LabUiAnnotation;

@LabUiAnnotation(caption="Convolution")
public class ConvolutionWrapper extends Calculator {
	public static final String INPUT_1 = "Input 1";
	public static final String INPUT_2 = "Input 2";
	public static final String OUTPUT = "Output";
	
	public ConvolutionWrapper() {
		initInput(INPUT_1);
		initInput(INPUT_2);
		initOutput(OUTPUT);
	}
	@Override
	public synchronized void process() {
		setOutput(OUTPUT, new Convolution2().getResult(
				this.getInput(INPUT_1).getRealPart(), 
				this.getInput(INPUT_2).getRealPart()));

	}
	@Override
	public Object getSetting() {
		// TODO Auto-generated method stub
		return null;
	}

}
